package com.malamute.system.entity;
/**
 *@Title:TrialType.java
 *@Package com.cafe.model
 *@Description  测试
 *@author AceGuan gjybst@163.com
 *@date 2012-1-31 上午09:57:55
 *@version v1.0
 */
public enum TrialType {
	BUG("BUG"), IMPROVE("改进"), REQUIREMENT("需求");
	private String value;
	private TrialType(String value){
		this.value=value;
	}
	/** 
	 * 获取value 
	 * @return value 
	 */
	
	public String getValue() {
		return value;
	}
	/** 
	 * 设置value 
	 * @param value  
	 */
	public void setValue(String value) {
		this.value = value;
	}
	
	public String getKey(){
		return this.toString();
	}
	public static void main(String[] args) {
		System.out.println(Enum.valueOf(TrialType.class, "BUG"));
		for(TrialType t:TrialType.values()){
			System.out.println(t.getValue());
			System.out.println(t.getKey());
		}
	}
}
